package QL;

import java.util.Map;

public class ButlerUploadCustomResourceRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 经过base64处理过的资源内容
    /// </summary>
    public String ResourceContent;

    /// <summary>
    /// 文件的扩展名，比如png，jpg等等
    /// </summary>
    public String FileExtension;

    @Override
    public String GetApiName()
    {
        return "butler.upload.custom.resource";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("resource_content", ResourceContent);
        map.put("file_extension", FileExtension);
    }
}
